package com.tian.mapper;

import com.tian.entity.UserTradeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserTradeRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserTradeRecord record);

    UserTradeRecord selectByPrimaryKey(Long id);

    List<UserTradeRecord> selectAll();

    List<UserTradeRecord> selectByCustomerNo(@Param("customerNo") String customerNo, @Param("tradeType") int tradeType,
                                             @Param("start") int start, @Param("page") int page);

    int updateByPrimaryKey(UserTradeRecord record);
}